<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="content-Type" content="text/html;charset=utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="description" content="同乡烩后台管理系统"/>
    <title>同乡烩后台管理系统</title>
    <link rel="stylesheet" th:href="@{/css/reset.css}"/>
    <link rel="stylesheet" th:href="@{/css/main.css}"/>
    <link rel="stylesheet" th:href="@{/css/list.css}"/>
    <link rel="stylesheet" th:href="@{/css/manage.css}"/>
    <script type="text/javascript" th:src="@{js/jquery-3.4.1.js}"></script>
    <script th:src="@{js/bootstrap.min.js}"></script>

</head>
<!-- 订单管理 -->
<body>
<!-- 固定 -->
<div class="main">
    <!--引入公共页面-->
    <div th:replace="admin/admin-left::left"/>

    <div class="main-left"></div>
    <!-- 操作 -->
    <div class="main-right">
        <div class="main-right-header"></div>
        <div class="main-right-navs">
            <a href="index-manage.html">管理首页</a><a class="split"><a>/</a><a>订单查看</a>
        </div>

        <div class="manage-right-container">
            <div class="section section1">


                <div class="manage-right-top">订单ID</div>
                <div class="manage-right-top">所属账户</div>

                <div class="manage-right-top">创建时间</div>

                <div class="manage-right-top">收货地址</div>

                <div class="manage-right-top">订单状态</div>

                <div class="manage-right-top">操作</div>


                <div class="clear"></div>
            </div>

            <div class="section  section2" th:each="orders:${orders}">


                <div class="body manage-right-body" th:text="${orders.getOrderid()}">id</div>
                <div class="body manage-right-body" th:text="${orders.getAccount()}">所属账户</div>
                <div class="body manage-right-body" th:text="${orders.getCreationtime()}">创建时间</div>
                <div class="body manage-right-body" th:text="${orders.getAddress()}">广东省惠州市河南岸演达大道46号</div>
                <div class="body manage-right-body" th:if="${orders.getPaymentstatus()>0}">成功下单</div>
                <div class="body manage-right-body" th:if="${orders.getPaymentstatus()<=0}">无效订单</div>
                <div class="body manage-right-body"><a th:href="@{'/deleteOrder/'+${orders.getOrderid()}}">删除&nbsp</a>
                </div>


            </div>


        </div>
        <div class="clear"></div>
    </div>
    <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
    <script>
        $(function () {

            var body_height = $(document).height();
            $(".main").css("height", body_height + "px")
        })
    </script>
</body>
</html>
